package top.yueyazhui.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.yueyazhui.common.bean.Response;

@FeignClient("account")
@RequestMapping("/account")
public interface AccountFeign {

    @PostMapping("/deduct")
    Response deductAccount(@RequestParam("userId") String userId, @RequestParam("money") Double money);
}
